package com.tjp.subject.common.enums;

import lombok.Getter;

/**
 * @program: jz-club
 * @description: 删除标记枚举
 * @author: aaronTang
 * @create: 2024-02-26
 */
@Getter
public enum CategoryTypeEnum {

    PRIMARY(1, "岗位"),
    SECOND(2, "二级分类");


    public int code;
    public String desc;

    CategoryTypeEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static CategoryTypeEnum getByCode(int codeVal) {
        for (CategoryTypeEnum isDeletedFlagEnum : CategoryTypeEnum.values()) {
            if (isDeletedFlagEnum.getCode() == codeVal) {
                return isDeletedFlagEnum;
            }
        }
        return null;
    }

}
